package com.hbt.myplus.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.swing.text.html.parser.Entity;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Map;

/**
 * <p>
 * 
 * </p>
 *
 * @author astupidcoder
 * @since 2020-12-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Services extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String servicename;

    public String[] getUrlList() {
        return urlList;
    }

    public void setUrlList(String[] urlList) {
        this.urlList = urlList;
    }

    private BigDecimal price;

    @TableField(exist = false)
    private Map[] imgs;

    @TableField(exist = false)
    private String[] urlList;

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    private Integer deleteFlag;

    public static String DESC_IMG = "desc_img";

    @Override
    public String toString() {
        return "Services{" +
                "id=" + id +
                ", servicename='" + servicename + '\'' +
                ", price=" + price +
                ", imgs=" + Arrays.toString(imgs) +
                ", memo='" + memo + '\'' +
                ", avatar='" + avatar + '\'' +
                ", sno='" + sno + '\'' +
                '}';
    }

    public Map<String, String>[] getImgs() {
        return imgs;
    }

    public void setImgs(Map[] imgs) {
        this.imgs = imgs;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getServicename() {
        return servicename;
    }

    public void setServicename(String servicename) {
        this.servicename = servicename;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    private String memo;

    private String avatar;

    private String sno;


}
